package com.yby.dome3;

public class Point {
    private int x;
    private int y;
    public Point(){

    }
    public Point(int x,int y){
        this.x = x;
        this.y = y;
        movePoint(this.x,this.y);
    }
    public void setX(int x){
        this.x = x;
    }
    public void setY(int y){
        this.y = y;
    }
    public int getX(){
        return x;
    }
    public int getY(){
        return y;
    }
    public void movePoint(int x,int y){
        this.x = 2 * x + 3;
        this.y = y + 15;
        System.out.println("移动后的坐标为：("+this.x+","+this.y+")");
    }
}
